<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>运输计划管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="transportPlanningList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">运输计划列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>
	
	<!-- 搜索 -->
	<div class="accordion-group">
	<div id="collapseTwo" class="accordion-body collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="transportPlanning" class="form form-horizontal well clearfix">

				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="装运单号：">装运单号：</label>
					<form:input path="shipmentNumbers" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="装运单号：">到站地城市：</label>
					<form:input path="arriveCity" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="装运单号：">收货单位名称：</label>
					<form:input path="unitName" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="状态：">委托单状态：</label>
					<select class="form-control" name="status">
						<option value="">请选择</option>
						<option value="已创建">已创建</option>
						<option value="已配载">已配载</option>
					</select>

				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="状态：">计划状态：</label>
					<select class="form-control" name="planStatus">
						<option value="">请选择</option>
						<option value="未计划">未计划</option>
						<option value="部分计划">部分计划</option>
						<option value="计划完成">计划完成</option>
					</select>

				</div>
				<div class="col-xs-12 col-sm-6 col-md-4">
					<label class="label-item single-overflow pull-left" title="项目名称：">下单日期：</label>
					<div class="col-xs-12">
						<div class='input-group form_datetime' id='date'>
							<input type='text'  name="date" class="form-control "/>
							<span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
						</div>
					</div>
				</div>
		 <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>	
	</form:form>
	</div>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div id="toolbar">
		<shiro:hasPermission name="tms:transportPlanning:cd">
		<button id="cd" class="btn btn-primary" disabled onclick="cd()">
			<i class="glyphicon glyphicon-edit"></i>计费拆单
		</button>
		</shiro:hasPermission>
					<shiro:hasPermission name="tms:transportPlanning:cjpz">
						<button id="add" class="btn btn-primary" disabled onclick="cjpz()">
							<i class="glyphicon glyphicon-edit"></i> 创建配载
						</button>
					</shiro:hasPermission>

				<%--<li>--%>
					<%--<shiro:hasPermission name="tms:transportPlanning:edit">--%>
						<%--<button id="edit" class="btn btn-success" disabled onclick="zctx()">--%>
							<%--<i class="glyphicon glyphicon-edit"></i> 装车填写--%>
						<%--</button>--%>
					<%--</shiro:hasPermission>--%>
				<%--</li>--%>

					<shiro:hasPermission name="tms:transportPlanning:qxpz">
						<button id="qx" class="btn btn-danger" disabled onclick="qxpz()">
							<i class="glyphicon glyphicon-edit"></i> 取消配载
						</button>
					</shiro:hasPermission>
		<shiro:hasPermission name="tms:transportPlanning:kjlc">
		<button id="kj" class="btn btn-primary" disabled onclick="kj()">
			<i class="glyphicon glyphicon-edit"></i> 快捷配载装车
		</button>
		</shiro:hasPermission>

			<%--<shiro:hasPermission name="tms:transportPlanning:add">
				<button id="add" class="btn btn-primary" disabled onclick="cjpz()">
					<i class="glyphicon glyphicon-edit"></i> 创建配载
				</button>
			</shiro:hasPermission>
			<shiro:hasPermission name="tms:transportPlanning:edit">
			    <button id="edit" class="btn btn-success" disabled onclick="zctx()">
	            	<i class="glyphicon glyphicon-edit"></i> 装车填写
	        	</button>
			</shiro:hasPermission>
			<button id="del" class="btn btn-danger" disabled onclick="ckd()">
				<i class="glyphicon glyphicon-del"></i> 生成出库单
			</button>--%>
	        	<a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
					<i class="fa fa-search"></i> 检索
				</a>
		    </div>
		
	<!-- 表格 -->
	<table id="transportPlanningTable" style="text-align: center"  class="table text-nowrap" data-toolbar="#toolbar"></table>

    <!-- context menu -->

	</div>
	</div>
	</div>
</body>
</html>